{% load i18n %}
<div class="item">
    <p>{% trans "Used:" %} {{ space_usage|filesizeformat }} {% if space_quota > 0 %}/ {{ space_quota|filesizeformat }} {% endif %}</p>

    {% if not org %}
    {% if CALC_SHARE_USAGE %}
    <p>{% trans "Sharing:" %} {{ share_usage|filesizeformat }} {% if share_quota > 0 %}/ {{ share_quota|filesizeformat }} {% endif %}</p>
    {% endif %}
    {% endif %}

    {% if space_quota > 0 or share_quota > 0 %}
    <div id="quota-bar">
        {% if show_quota_help %}
        <a href="http://www.seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}help/quota/" target="_blank">
        {% endif %}
            <span id="quota-usage" class="usage" style="width:{{rates.space_usage}};"></span><span id="share-usage" class="usage" style="width:{{rates.share_usage}};"></span>
        {% if show_quota_help %}
        </a>
        {% endif %}
    </div>
    {% endif %}

    {% if user.trialing %}
    <p><a href="{{user.trial_info.payment_url}}">Trial expires at {{user.trial_info.expire_date|date:"Y-m-d"}}</a></p>
    {% endif %}
</div>

{% if TRAFFIC_STATS_ENABLED %}
<a class="item" href="http://www.seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}help/traffic/" target="_blank" id="traffic-stat">{% trans "Traffic this month:" %} {{ traffic_stat|filesizeformat }}</a>
{% endif %}

{% if ENABLE_PAYMENT %}
<a class="item" href="{{ payment_url }}">{% trans "Payment" %}</a>
{% endif %}
